<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>终点分类</title>
</head>
<style>
    body,
    button,
    dd,
    div,
    dl,
    dt,
    fieldset,
    form,
    h1,
    h2,
    h3,
    h4,
    h5,
    h6,
    html,
    img,
    input,
    li,
    ol,
    p,
    select,
    span,
    sub,
    sup,
    table,
    td,
    textarea,
    th,
    ul {
        margin: 0;
        padding: 0;
    }

    body {
        font: 14px / 1.5 Arial, \u601d\u6e90\u5b8b\u4f53, PingFangSC-Regular, \5FAE\8F6F\96C5\9ED1, \5b8b\4f53;
        _height: 100%;
    }

    .wrapper,
    body {
        background: #fff;
    }

    a,
    body,
    body a {
        color: #222;
    }

    .qm-header,
    .qm-sheader {
        width: 100%;
    }

    .qm-header-con,
    .qm-sheader-con {
        width: 1160px;
        margin: 0 auto;
    }

    .qm-header-row.con,
    .qm-sheader-row.con {
        height: 72px;
    }

    .qm-header-row,
    .qm-sheader-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .qm-header-row .left-col,
    .qm-header-row .right-col,
    .qm-sheader-row .left-col,
    .qm-sheader-row .right-col {
        height: 100%;
        display: flex;
        align-items: center;
    }

    .qm-header-con .logo,
    .qm-sheader-con .logo {
        display: inline-block;
    }

    body a {
        text-decoration: none;
    }

    a,
    body,
    body a {
        color: #222;
    }

    a {
        text-decoration: none;
        cursor: pointer;
    }

    .qm-header .search-wrap.type-1,
    .qm-sheader .search-wrap.type-1 {
        width: 320px;
    }

    .qm-header .search-wrap,
    .qm-sheader .search-wrap {
        margin-right: 24px;
    }

    .qm-header .search-wrap.type-1 .s-input,
    .qm-sheader .search-wrap.type-1 .s-input {
        padding: 2px;
    }

    .qm-header .search-wrap .s-input,
    .qm-sheader .search-wrap .s-input {
        display: block;
        height: 32px;
        padding: 2px 0;
        background: #fcc800;
        -moz-border-radius: 32px;
        -webkit-border-radius: 32px;
        -ms-border-radius: 32px;
        -o-border-radius: 32px;
        border-radius: 32px;
        overflow: hidden;
        line-height: 32px;
        position: relative;
    }

    .qm-header .search-wrap .s-input input,
    .qm-sheader .search-wrap .s-input input {
        width: 200px;
        float: left;
        border: 0;
        height: 20px;
        line-height: 20px;
        padding: 6px 16px;
        font-size: 14px;
        -moz-border-bottom-left-radius: 32px;
        -webkit-border-bottom-left-radius: 32px;
        -ms-border-bottom-left-radius: 32px;
        -o-border-bottom-left-radius: 32px;
        border-bottom-left-radius: 32px;
        -moz-border-top-left-radius: 32px;
        -webkit-border-top-left-radius: 32px;
        -ms-border-top-left-radius: 32px;
        -o-border-top-left-radius: 32px;
        border-top-left-radius: 32px;
        position: relative;
        z-index: 5;
    }

    input,
    textarea {
        font-family: Arial, \5FAE\8F6F\96C5\9ED1, \5b8b\4f53;
        caret-color: #000;
    }

    body,
    button,
    dd,
    div,
    dl,
    dt,
    fieldset,
    form,
    h1,
    h2,
    h3,
    h4,
    h5,
    h6,
    html,
    img,
    input,
    li,
    ol,
    p,
    select,
    span,
    sub,
    sup,
    table,
    td,
    textarea,
    th,
    ul {
        margin: 0;
        padding: 0;
    }

    .qm-header .search-wrap.type-1 .s-input .a-search-btn,
    .qm-sheader .search-wrap.type-1 .s-input .a-search-btn {
        width: 80px;
        font-size: 16px;
        line-height: 38px;
        height: 36px;
    }

    .qm-header .search-wrap .s-input .a-search-btn,
    .qm-sheader .search-wrap .s-input .a-search-btn {
        text-align: center;
        font-weight: 700;
        height: 100%;
        position: absolute;
        top: 0;
        right: 0;
        overflow: hidden;
        background: #fcc800;
    }

    body a {
        text-decoration: none;
    }

    a,
    body,
    body a {
        color: #222;
    }

    a {
        text-decoration: none;
        cursor: pointer;
    }

    .qm-header .header-menu,
    .qm-sheader .header-menu {
        display: flex;
        height: 48px;
    }

    .qm-header-row,
    .qm-sheader-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .qm-header-row .left-col,
    .qm-header-row .right-col,
    .qm-sheader-row .left-col,
    .qm-sheader-row .right-col {
        height: 100%;
        display: flex;
        align-items: center;
    }

    .qm-header .header-menu.size-1 a:not(:last-child),
    .qm-sheader .header-menu.size-1 a:not(:last-child) {
        margin-right: 30px;
    }

    .qm-header .header-menu.size-1 a,
    .qm-sheader .header-menu.size-1 a {
        font-size: 18px;
        line-height: 24px;
        font-weight: 700;
    }

    .qm-header .header-menu a,
    .qm-sheader .header-menu a {
        height: 100%;
        display: flex;
        align-items: center;
    }
    .pt24, .wrapper.padding-top {
    padding-top: 24px;
}
.footer-con, .wrapper.border-top {
    border-top: 1px solid #ebebeb;
}
.wrapper {
    min-width: 1160px;
}
.wrapper, body {
    background: #fff;
}
.wrapper .main, .wrapper .row {
    padding-bottom: 0;
}
.wrapper .main {
    width: 1160px;
    margin: 0 auto;
    min-height: 600px;
    padding-bottom: 32px;
}
.wrapper .main, .wrapper .row {
    padding-bottom: 0;
}
.wrapper .row {
    padding-bottom: 24px;
}
.classify-wrap {
    padding: 24px 30px 0 24px;
    margin-bottom: 32px;
    background: #f8f8f8;
    font-size: 14px;
    line-height: 28px;
    -moz-border-radius: 4px;
    -webkit-border-radius: 4px;
    -ms-border-radius: 4px;
    -o-border-radius: 4px;
    border-radius: 4px;
}
li, ol, ul {
    list-style: none;
}
.classify-wrap li {
    padding-bottom: 16px;
}

.classify-wrap li .classify-name {
    float: left;
    margin-right: 14px;
    text-align: right;
    color: #999;
}
.classify-wrap li .classify-con {
    float: left;
    
    overflow: hidden;
}
.classify-wrap li .classify-con a.cur {
    font-weight: 700;
    background: #fcc800;
    background-image: -webkit-gradient(90deg, from(#ffe040), to(#fcc800));
    background-image: -webkit-linear-gradient(90deg, #ffe040, #fcc800);
    background-image: -moz-linear-gradient(90deg, #ffe040, #fcc800);
    background-image: -o-linear-gradient(90deg, #ffe040, #fcc800);
    background-image: linear-gradient(90deg, #ffe040, #fcc800);
    -moz-border-radius: 14px;
    -webkit-border-radius: 14px;
    -ms-border-radius: 14px;
    -o-border-radius: 14px;
    border-radius: 14px;
}
.classify-wrap li .classify-con a {
    float: left;
    position: relative;
    vertical-align: top;
    line-height: 20px;
    height: 20px;
    color: #222;
    padding: 4px 12px;
    margin: 0 8px 8px 0;
}
.clearfix:after {
    content: ".";
    display: block;
    height: 0;
    clear: both;
    visibility: hidden;
}
.wrapper .main, .wrapper .row {
    padding-bottom: 0;
}
.wrapper .row {
    padding-bottom: 24px;
}
.wrapper .con-box {
    overflow: hidden;
    width: 100%;
}
.wrapper .con-box .width-1220 {
    width: 1220px;
}
.qm-pic-txt.pic-110-146-classify li {
    width: 360px;
    height: 146px;
    margin-bottom: 40px;
}
.qm-pic-txt.pic-110-146 li, .qm-pic-txt.pic-110-146-classify li, .qm-pic-txt.pic-110-146-single li {
    width: 260px;
    margin: 0 40px 24px 0;
}
.qm-pic-txt li {
    float: left;
    display: inline;
}
qm-pic-txt.pic-110-146 li .pic, .qm-pic-txt.pic-110-146-classify li .pic, .qm-pic-txt.pic-110-146-single li .pic {
    width: 110px;
    height: 146px;
}
.qm-pic-txt li .pic {
    float: left;
    display: inline;
    -moz-border-radius: 2px;
    -webkit-border-radius: 2px;
    -ms-border-radius: 2px;
    -o-border-radius: 2px;
    border-radius: 2px;
    -moz-box-shadow: 0 0 1px rgba(0, 0, 0, .2) inset;
    -webkit-box-shadow: 0 0 1px rgba(0, 0, 0, .2) inset;
    -ms-box-shadow: 0 0 1px rgba(0, 0, 0, .2) inset;
    -o-box-shadow: 0 0 1px rgba(0, 0, 0, .2) inset;
    box-shadow: 0 0 1px rgba(0, 0, 0, .2) inset;
    overflow: hidden;
}
.qm-pic-txt li .pic a {
    display: block;
    position: relative;
}
.qm-pic-txt li .pic a:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    -o-box-shadow: 0 0 1px rgba(0, 0, 0, .2) inset;
    box-shadow: 0 0 1px rgba(0, 0, 0, .2) inset;
    -webkit-border-radius: 2px;
    border-radius: 2px;
    z-index: 10;
}
.qm-pic li .pic, .qm-pic-txt li .pic a:before {
    -moz-box-shadow: 0 0 1px rgba(0, 0, 0, .2) inset;
    -webkit-box-shadow: 0 0 1px rgba(0, 0, 0, .2) inset;
    -ms-box-shadow: 0 0 1px rgba(0, 0, 0, .2) inset;
}
.qm-pic-txt li .pic a:before, .qm-pic-txt li .pic img {
    -moz-border-radius: 2px;
    -ms-border-radius: 2px;
    -o-border-radius: 2px;
    width: 100%;
}
.qm-pic-txt li .pic img {
    height: 100%;
    display: block;
    vertical-align: top;
    -webkit-border-radius: 2px;
    border-radius: 2px;
}
.qm-pic-txt li .pic a:before, .qm-pic-txt li .pic img {
    -moz-border-radius: 2px;
    -ms-border-radius: 2px;
    -o-border-radius: 2px;
    width: 100%;
}
img {
    vertical-align: middle;
}
iframe, img {
    border: 0;
}
.qm-pic-txt.pic-110-146-classify li .txt {
    width: 234px;
    height: 146px;
}
.qm-pic-txt.pic-110-146 li .txt, .qm-pic-txt.pic-110-146-classify li .txt, .qm-pic-txt.pic-110-146-single li .txt {
    width: 134px;
    height: 146px;
}
.qm-pic-txt li .txt {
    float: right;
    position: relative;
    overflow: hidden;
    font-size: 12px;
}
.qm-pic-txt li .txt span.s-tit {
    line-height: 22px;
    max-height: 44px;
    font-size: 16px;
    color: #222;
    padding-top: 4px;
    text-overflow: ellipsis;
}
.qm-pic-txt li .txt span.s-des, .qm-pic-txt li .txt span.s-tit {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    overflow: hidden;
    -webkit-box-orient: vertical;
}
.qm-pic-txt li .txt span {
    display: block;
}
.qm-pic-txt li .txt span.s-tags {
    padding-top: 8px;
    color: #999;
    line-height: 20px;
}
.qm-pic-txt li .txt span {
    display: block;
}
.qm-tags {
    color: #999;
    font-size: 12px;
}
.qm-tags a:first-child, .qm-tags em:first-child {
    margin-left: 0;
}
.qm-tags a, .qm-tags em {
    line-height: 18px;
    padding: 0 4px;
    border: 1px solid #ddd;
    color: #999;
    margin-left: 8px;
    float: left;
    display: inline;
    white-space: nowrap;
    -moz-border-radius: 4px;
    -webkit-border-radius: 4px;
    -ms-border-radius: 4px;
    -o-border-radius: 4px;
    border-radius: 4px;
}
.iconfont, em, i {
    font-style: normal;
}
.clearfix:after {
    content: ".";
    display: block;
    height: 0;
    clear: both;
    visibility: hidden;
}
.qm-pic-txt li .txt span.s-des {
    padding-top: 8px;
    height: 34px;
}
.qm-pic-txt li .txt span.s-des, .qm-pic-txt li .txt span.s-name {
    line-height: 17px;
    color: #999;
}
.qm-pic-txt li .txt span.s-des, .qm-pic-txt li .txt span.s-tit {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    overflow: hidden;
    -webkit-box-orient: vertical;
}
.qm-pic-txt li .txt .p-bottom, .qm-pic-txt li .txt .p-bottom-inline {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding-bottom: 3px;
}
.logo{
    font-size: 50px;
}
.cur{
    border-bottom:5px solid #fcc800;
}
#submitButton{
	border:none;
}
</style>

<body>
<div class="qm-header">
        <div class="qm-header-con">
            <div class="qm-header-row con">
                <div class="left-col">
                    <a href="index.jsp" class="logo">
                        终点小说网
                    </a>
                </div>
                <div class="right-col">
                    <div class="search-wrap js-header-search type-1">
                      <form method="get" action="MessageServlet" id="myForm1" >
                        <span class="s-input ">
                            <input type="text" class="js-header-search-input" placeholder="请输入书名/分类/作者" name="mytext">
							
                            <button type="submit" class="a-search-btn js-header-search-submit" id="submitButton">搜索</button>
                        </span>
                        </form>
                    </div>

                </div>
            </div>
            <div class="qm-header-row header-menu size-1">
                <div class="left-col">
                    <a href="index.jsp">首页</a>
                    <a href="#" target="_blank" class="cur">分类</a>
                </div>
            </div>
        </div>
    </div>

    <div class="wrapper padding-top border-top">
        <div class="main">
            <!-- 分类 start-->
            <div class="row">
                <ul class="classify-wrap">
                    
                    <li class="clearfix">
                        <div class="classify-name">当前看查的作品分类:</div>
                        <div class="classify-con">
                            <div class="classify-row js-row">
                                <a  class="cur" data-pid="a">${list[0].novelTypeName }<i></i></a>
                             
                            </div>

                        </div>
                    </li>
                </ul>
            </div>
            <!-- 分类 end-->
            <!-- 图文/文字 start-->
            <div class="row">
                <div class="qm-mod">
                        <div class="qm-mod-tb">
                            <div class="con-box books-pic-con js-list-data" list-type="img" style="display: block;">
                                <ul class="qm-pic-txt pic-110-146-classify width-1220 clearfix">
                                <c:forEach items="${list }" var="novel">
                                    <li>
                                        <div class="pic">
                                            <a href="ShuServlet?novelId=${novel.novelId }"><img src="image/${novel.novelImgURL }"
                                                    alt="" width="110" height="146"></a>
                                        </div>
                                        <div class="txt">
                                            <span class="s-tit"><a href="ShuServlet?novelId=${novel.novelId }">${novelName }</a></span>
                                            <span class="s-tags qm-tags clearfix">
                                                <em>${novel.novelTypeName } *${novel.novelTypeName2 }</em>&nbsp;&nbsp;&nbsp;&nbsp;连载
                                            </span>

                                            <span class="s-des">${novel.novelIntroduction }</span>
                                            <p class="p-bottom-inline">
                                                <span class="s-name">${novel.writerName }&nbsp;&nbsp;${novel.updateTime }发布</span>
                                            </p>
                                        </div>
                                    </li>
                                    </c:forEach>
                                </ul>
                            </div>
                            

                        </div>
                        
                    </div>
                    <!-- 图文/文字 end-->
                </div>

            </div>
        </div>
</body>
<script type="text/javascript">
document.addEventListener('DOMContentLoaded', function() {
	  // 获取div元素
	  var submitButton = document.getElementById('c');
	 
	  // 给div添加点击事件
	  submitButton.addEventListener('click', function() {
	    // 获取表单元素
	    var form = document.getElementById('myForm1');
	    
	    // 触发表单的submit事件
	    form.submit();
	  });
	});
	</script>
</html>